package com.nsqt.biz.service.impl;

import com.nsqt.biz.dao.WorksDao;
import com.nsqt.biz.domain.WorksDO;
import com.nsqt.biz.service.WorksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class WorksServiceImpl implements WorksService {
    @Autowired
    private WorksDao worksDao;

    @Override
    public WorksDO get(Integer id) {
        return worksDao.get(id);
    }

    @Override
    public WorksDO getBySn(String sn) {
        return worksDao.getBySn(sn);
    }

    @Override
    public List<WorksDO> list(Map<String, Object> map) {
        return worksDao.list(map);
    }

    @Override
    public List<WorksDO> listExcel(Map<String, Object> map) {
        return worksDao.listExcel(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return worksDao.count(map);
    }

    @Override
    public int save(WorksDO works) {
        return worksDao.save(works);
    }

    @Override
    public int update(WorksDO works) {
        return worksDao.update(works);
    }

    @Override
    public int remove(Integer id) {
        return worksDao.remove(id);
    }

    @Override
    public int approval(Integer id) {
        return worksDao.approval(id);
    }

    @Override
    public int batchRemove(Integer[] ids) {
        return worksDao.batchRemove(ids);
    }

}
